export const ENDPOINTS = {
  // 借用记录相关
  BORROW: {
    BASE: '/borrows',
    LIST: '/borrows',
    CREATE: '/borrows',
    DETAIL: (id: number) => `/borrows/${id}`,
    UPDATE: (id: number) => `/borrows/${id}`,
    DELETE: (id: number) => `/borrows/${id}`,
    RETURN: (id: number) => `/borrows/${id}/return`,
  },

  // 人员管理相关
  MEMBER: {
    BASE: '/persons',
    LIST: '/persons',
    CREATE: '/persons',
    DETAIL: (id: number) => `/persons/${id}`,
    UPDATE: (id: number) => `/persons/${id}`,
    DELETE: (id: number) => `/persons/${id}`,
  },

  // 物资管理相关
  MATERIAL: {
    BASE: '/materials',
    LIST: '/materials',
    CREATE: '/materials',
    DETAIL: (id: number) => `/materials/${id}`,
    UPDATE: (id: number) => `/materials/${id}`,
    DELETE: (id: number) => `/materials/${id}`,
  },
};

export const BORROW_STATUS = {
  BORROWED: 'borrowed',
  RETURNED: 'returned',
} as const;